<!--
 * @Author: 涵崽
 * @Date: 2024-03-01 16:52:50
 * @email: 1045654@qq.com
 * @gitee: https://gitee.com/han-zai
 * @LastEditors: 涵崽
 * @LastEditTime: 2024-03-05 13:45:29
 * @Description: 微信：1045654
-->
<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: "App",
  created() {
    // 建立 web socket 连接
    /* this.$sockets = new WebSocket("ws://124.222.224.186:8800");
    this.$sockets.onopen = () => {
      console.log("WebSocket 连接已打开");
    };
    this.$sockets.onmessage = (event) => {
      console.log("收到消息：", event.data);
    };
    this.$sockets.onclose = () => {
      console.log("WebSocket 连接已关闭");
    };
    this.$sockets.onerror = (error) => {
      console.error("WebSocket 发生错误：", error);
    }; */
  },
};
</script>
